<extend name="Base/form" />

<block name="title">数据库备份</block>
<block name="head"><link rel="stylesheet" type="text/css" href="__CSS__/{$Think.const.CONTROLLER_NAME}.css"></block>

<block name="nav">
<li class="current"><a href="{:U(CONTROLLER_NAME.'/index')}">备份</a></li>
</block>

<block name="form">
<div id="form">
  <form method="post" action="">
    <dl>
      <dd>数据表，不选则为备份全部数据表（由于服务器原因，如果备份的数据出现乱码，请登录phpMyAdmin自行备份）</dd>
    </dl>
    <table>
      <foreach name="All" key="key" item="value">
      <if condition="($key+1)%4==1"><tr></if>
      <td><if condition="$value['Name']"><label><input type="checkbox" name="tablename[]" value="{$value['Name']}">{$value['Name']}</label></if></td>
      <if condition="($key+1)%4==0"></tr></if>
      </foreach>
    </table>
    <dl>
      <dd>分　卷：<input type="text" name="filesize" value="2000" class="input-text">（KB，填0为不分卷）</dd>
      <dd><input type="submit" value="确认备份" class="btn btn-primary radius"></dd>
    </dl>
  </form>
</div>
</block>